﻿using System;

public sealed class SomeLibraryType
{
    // readonly field decided during runtime, 
    // can't apply to constructor of attribut that requrie const

    // The static is required to associate the field with the type.
    public static readonly Int32 MaxEntriesInList = 50;

    //A static readonly field cannot be assigned to (except in a static constructor or a variable initializer)	
    static SomeLibraryType()
    {
        MaxEntriesInList = 100;
    }

    public readonly Int32 MinEntriesInList = 50;

    // A readonly field cannot be assigned to (except in a constructor or a variable initializer)	
    public SomeLibraryType()
    {
        MinEntriesInList = 100;
    }
}